<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改密码</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.min.css" rel="stylesheet">
    <style>
        #form {
            margin-top: 20px;
            width: 50%;
            text-align: center;
            margin-left: 25%;
        }

        label {
            font-weight: 700;
        }
    </style>
</head>
<body>
<!--头部 start-->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
    <div class="container-fluid">
        <a class="navbar-brand" th:href="@{/}">乐悠悠直聘网</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown"
                aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNavDropdown">
            <ul class="navbar-nav">
                <li class="nav-item">
                    <a class="nav-link active" aria-current="page" th:href="@{/}">首页</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{jobs}">求职</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{news}">资讯</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{enterprise}">公司</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{school}">校园</a>
                </li>
                <div style="padding-left: 900px">
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button"
                           data-bs-toggle="dropdown" aria-expanded="false" th:text="${session.user}">
                        </a>
                        <ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
                            <li><a class="dropdown-item" th:href="@{pwd}">修改密码</a></li>
                            <li><a class="dropdown-item" th:href="@{resume}">我的简历</a></li>
                            <li><a class="dropdown-item" th:href="@{logout}">退出登录</a></li>
                        </ul>
                    </li>
                </div>
            </ul>
        </div>
    </div>
</nav>
<!--头部 end-->

<!--主体 start-->
<div id="form">
    <form class="bs-example bs-example-form" role="form" th:action="@{editPwd}" method="post">
        <div class="input-group mb-3">
            <div class="input-group-prepend" style="width: 85px">
                <span class="input-group-text" id="basic-addon1">&nbsp;原密码&emsp;</span>
            </div>
            <input type="password" class="form-control" name="primaryPwd"
                   aria-describedby="basic-addon1">
        </div>
        <div class="input-group mb-3">
            <div class="input-group-prepend" style="width: 85px">
                <span class="input-group-text" id="basic-addon2">&nbsp;新密码&emsp;</span>
            </div>
            <input type="password" class="form-control" name="newPwd"
                   aria-describedby="basic-addon2">
        </div>
        <div class="input-group mb-3">
            <div class="input-group-prepend" style="width: 85px">
                <span class="input-group-text" id="basic-addon3">确认密码&emsp;</span>
            </div>
            <input type="password" class="form-control" name="reNewPwd"
                   aria-describedby="basic-addon3">
        </div>
        <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
        <button type="submit" class="btn btn-primary" style="margin-top: 20px">保存</button>
    </form>
</div>
<!--主体 start-->
</body>
</html>